package com.talkyun.openx.server.codec;

import com.talkyun.openx.server.core.ServiceRequest;
import com.talkyun.openx.server.core.ServiceResponse;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public interface Codec {

    ServiceRequest decode(HttpServletRequest httpReq) throws IOException;

    void encode(ServiceResponse srvResp, HttpServletResponse httpResp) throws IOException;
}